{% extends "base_generic.html" %}
{% load i18n %}

{% block title %}<title>{% translate "Book-Leaderboard" %}</title>{% endblock %}

{% block content %}
  <h1>{% translate "Top 10 Most Borrowed Books" %}</h1>

  {% if book_list %}
    <ol>
      {% for book in book_list %}
        <li>
          <a href="{{ book.get_absolute_url }}">{{ book.title }}</a> ({{ book.borrow_count }} {% translate "borrows" %})
        </li>
      {% endfor %}
    </ol>
  {% else %}
    <p>{% translate "No books have been borrowed yet." %}</p>
  {% endif %}
{% endblock %}
